package com.haoran.dwz.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.haoran.dwz.domain.entities.ShortURL;


public interface ShortUrlService {
	
	String DWZ_ADDRESS ="http://ky9.cn/";

	long count();

	ShortURL findByUrl(String uRL);

	ShortURL save(ShortURL shortUrl);

	boolean exists(long nextId);

	ShortURL findOne(long nextId);

	List<ShortURL> findAll();

	void delete(long id, String username);

	Page<ShortURL> findByPageable(ShortURL shortURL, Pageable pageable);
}
